﻿@inject NotificationService _notice

<AntButton Type="@AntButtonType.Primary" OnClick="@OnClick">
    Open the notification box
</AntButton>

@code{
    private async Task OnClick()
    {
        await _notice.Open(new NotificationConfig()
        {
            Message = "title",
            Duration = 0,
            Description = "This notification box will not close automatically"
        });
    }
}